package com.ats.ereg.model.dao;

import java.util.List;

import javax.persistence.Query;

import org.springframework.stereotype.Repository;

import com.ats.ereg.model.entities.TstCourses;

@Repository("TstCoursesDAO")
public class TstCoursesDAO extends GenericDAO{

	@SuppressWarnings("unchecked")
	public List<TstCourses> findAll(){
		Query q = getEntityManager().createQuery("SELECT t FROM TstCourses t");
		return q.getResultList();
	}
	

}
